<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Note
 *
 * @ORM\Table(name="note")
 * @ORM\Entity(repositoryClass="AppBundle\Repository\NoteRepository")
 */
class Note
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @ORM\ManyToOne(targetEntity="Person", inversedBy="person_records")
     * @ORM\JoinColumn(name="person_id", referencedColumnName="id")
     **/
    private $person;

    /**
     * @ORM\ManyToOne(targetEntity="Person", inversedBy="linked_person_records")
     * @ORM\JoinColumn(name="linked_person_id", referencedColumnName="id")
     **/
    private $linked_person;

    /**
     * 进入日期
     * @ORM\Column(type="string",nullable=true, options={"comment"="进入日期"})
     */
    private $entry_date;

    /**
     * @ORM\Column(type="string", length=45,nullable=false ,options={"comment"="发现人姓名"})
     */
    private $author_name;

//    /**
//     * @ORM\Column(type="string", length=45,nullable=true ,options={"comment"="作者邮箱"})
//     */
//    private $author_email;
//
//    /**
//     * @ORM\Column(type="string", length=45,nullable=true  ,options={"comment"="作者电话"})
//     */
//    private $author_phone;
//
//    /**
//     * @ORM\Column(type="datetime",nullable=false ,options={"comment"="源日期"})
//     */
//    private $source_date;
//
//    /**
//     * @ORM\Column(type="boolean",nullable=true ,options={"comment"="联系作者"})
//     */
//    private $author_made_contact;
    /**
     * @ORM\Column(name="full_name",type="string", length=45, nullable=false ,options={"comment"="失踪人员姓名"})
     */
    private $full_name;

    /**
     * @ORM\Column(type="string", length=45,nullable=true ,options={"comment"="状态"})
     */
    private $status;

    /**
     * @ORM\Column(type="string", length=45,nullable=true ,options={"comment"="发现人的邮箱"})
     */
    private $email_of_found_person;

    /**
     * @ORM\Column(type="string", length=45,nullable=true ,options={"comment"="发现人的电话"})
     */
    private $phone_of_found_person;

    /**
     * @ORM\Column(type="string", length=45,nullable=true ,options={"comment"="最后一个已知位置"})
     */
    private $last_known_location;

    /**
     * @ORM\Column(type="text", length=100,nullable=false )
     */
    private $text;

    /**
     * @ORM\Column(type="string", length=300,nullable=true ,options={"comment"="照片URL"})
     */
    private $photo_url;


    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set entryDate
     *
     * @param \DateTime $entryDate
     *
     * @return Note
     */
    public function setEntryDate($entryDate)
    {
        $this->entry_date = $entryDate;

        return $this;
    }

    /**
     * Get entryDate
     *
     * @return \DateTime
     */
    public function getEntryDate()
    {
        return $this->entry_date;
    }

    /**
     * Set authorName
     *
     * @param string $authorName
     *
     * @return Note
     */
    public function setAuthorName($authorName)
    {
        $this->author_name = $authorName;

        return $this;
    }

    /**
     * Get authorName
     *
     * @return string
     */
    public function getAuthorName()
    {
        return $this->author_name;
    }

    /**
     * Set authorEmail
     *
     * @param string $authorEmail
     *
     * @return Note
     */
    public function setAuthorEmail($authorEmail)
    {
        $this->author_email = $authorEmail;

        return $this;
    }

    /**
     * Get authorEmail
     *
     * @return string
     */
    public function getAuthorEmail()
    {
        return $this->author_email;
    }

    /**
     * Set authorPhone
     *
     * @param string $authorPhone
     *
     * @return Note
     */
    public function setAuthorPhone($authorPhone)
    {
        $this->author_phone = $authorPhone;

        return $this;
    }

    /**
     * Get authorPhone
     *
     * @return string
     */
    public function getAuthorPhone()
    {
        return $this->author_phone;
    }

    /**
     * Set sourceDate
     *
     * @param \DateTime $sourceDate
     *
     * @return Note
     */
    public function setSourceDate($sourceDate)
    {
        $this->source_date = $sourceDate;

        return $this;
    }

    /**
     * Get sourceDate
     *
     * @return \DateTime
     */
    public function getSourceDate()
    {
        return $this->source_date;
    }

    /**
     * Set authorMadeContact
     *
     * @param boolean $authorMadeContact
     *
     * @return Note
     */
    public function setAuthorMadeContact($authorMadeContact)
    {
        $this->author_made_contact = $authorMadeContact;

        return $this;
    }

    /**
     * Get authorMadeContact
     *
     * @return boolean
     */
    public function getAuthorMadeContact()
    {
        return $this->author_made_contact;
    }

    /**
     * Set status
     *
     * @param string $status
     *
     * @return Note
     */
    public function setStatus($status)
    {
        $this->status = $status;

        return $this;
    }

    /**
     * Get status
     *
     * @return string
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Set emailOfFoundPerson
     *
     * @param string $emailOfFoundPerson
     *
     * @return Note
     */
    public function setEmailOfFoundPerson($emailOfFoundPerson)
    {
        $this->email_of_found_person = $emailOfFoundPerson;

        return $this;
    }

    /**
     * Get emailOfFoundPerson
     *
     * @return string
     */
    public function getEmailOfFoundPerson()
    {
        return $this->email_of_found_person;
    }

    /**
     * Set phoneOfFoundPerson
     *
     * @param string $phoneOfFoundPerson
     *
     * @return Note
     */
    public function setPhoneOfFoundPerson($phoneOfFoundPerson)
    {
        $this->phone_of_found_person = $phoneOfFoundPerson;

        return $this;
    }

    /**
     * Get phoneOfFoundPerson
     *
     * @return string
     */
    public function getPhoneOfFoundPerson()
    {
        return $this->phone_of_found_person;
    }

    /**
     * Set lastKnownLocation
     *
     * @param string $lastKnownLocation
     *
     * @return Note
     */
    public function setLastKnownLocation($lastKnownLocation)
    {
        $this->last_known_location = $lastKnownLocation;

        return $this;
    }

    /**
     * Get lastKnownLocation
     *
     * @return string
     */
    public function getLastKnownLocation()
    {
        return $this->last_known_location;
    }

    /**
     * Set text
     *
     * @param string $text
     *
     * @return Note
     */
    public function setText($text)
    {
        $this->text = $text;

        return $this;
    }

    /**
     * Get text
     *
     * @return string
     */
    public function getText()
    {
        return $this->text;
    }

    /**
     * Set photoUrl
     *
     * @param string $photoUrl
     *
     * @return Note
     */
    public function setPhotoUrl($photoUrl)
    {
        $this->photo_url = $photoUrl;

        return $this;
    }

    /**
     * Get photoUrl
     *
     * @return string
     */
    public function getPhotoUrl()
    {
        return $this->photo_url;
    }

    /**
     * Set person
     *
     * @param \AppBundle\Entity\Person $person
     *
     * @return Note
     */
    public function setPerson(\AppBundle\Entity\Person $person)
    {
        $this->person = $person;

        return $this;
    }

    /**
     * Get person
     *
     * @return \AppBundle\Entity\Person
     */
    public function getPerson()
    {
        return $this->person;
    }

    /**
     * Set linkedPerson
     *
     * @param \AppBundle\Entity\Person $linkedPerson
     *
     * @return Note
     */
    public function setLinkedPerson(\AppBundle\Entity\Person $linkedPerson = null)
    {
        $this->linked_person = $linkedPerson;

        return $this;
    }

    /**
     * Get linkedPerson
     *
     * @return \AppBundle\Entity\Person
     */
    public function getLinkedPerson()
    {
        return $this->linked_person;
    }

    /**
     * Set fullName
     *
     * @param string $fullName
     *
     * @return Note
     */
    public function setFullName($fullName)
    {
        $this->full_name = $fullName;

        return $this;
    }

    /**
     * Get fullName
     *
     * @return string
     */
    public function getFullName()
    {
        return $this->full_name;
    }
}
